<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>

<html>
  <head>
    
    <title>readnote hello</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <h1>userBook add. </h1>
    	<br>
    
	<s:form action="save.do" namespace="/center/userBook/" method="post">
		<table >
			<tr>
				<th>序号</th><td><s:property value="book.id" /></td>
			</tr>
			<tr>
				<th>书名</th><td><s:property value="book.title" /></td>
			</tr>
			<tr>
				<th>描述</th><td><s:property value="book.content" /></td>
			</tr>
			<tr>
				<th>封面地址</th><td><s:property value="book.bookface" /></td>
			</tr>
		</table>
		
		<s:hidden name="userBook.id" />
		<s:hidden name="userBook.book.id" value="%{book.id}" />
		<s:hidden name="userBook.user.id" value="%{user.id}"/>
		
		<s:hidden name="book.id" />
		<s:hidden name="user.id" />
		
		<input type="submit" value="添加此书籍到我的书架" />
	</s:form>
  </body>
</html>
